package com.xcf.service.business.settlement.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.settlement.AccountAdjustmentService;
import com.xcf.util.PageData;
@Service
public class AccountAdjustmentServiceImpl implements AccountAdjustmentService{
	@Resource(name="daoSupport")
	private DaoSupport dao;
//	@Override
//	public List<PageData> findCheckIncomeInfo(PageData pd) throws Exception {
//		// TODO Auto-generated method stub
//		return (List<PageData>) dao.findForList("account.findCheckIncome", pd);
//	}
//
//	@Override
//	public List<PageData> findCheckCost(PageData pd) throws Exception {
//		// TODO Auto-generated method stub
//		return (List<PageData>) dao.findForList("account.findCheckCost", pd);
//	}
//
//	@Override
//	public List<PageData> findCheckIncomeDetail(PageData pd) throws Exception {
//		// TODO Auto-generated method stub
//		return (List<PageData>) dao.findForList("account.findCheckIncomeDetail", pd);
//	}
//
//	@Override
//	public List<PageData> findCheckCostDetail(PageData pd) throws Exception {
//		// TODO Auto-generated method stub
//		return (List<PageData>) dao.findForList("account.findCheckCostDetail", pd);
//	}
//
//	@Override
//	public int saveFeeInfo(PageData pd) throws Exception {
//		int pd1 = (int) dao.save("account.saveFee", pd);
//		return pd1;
//		
//	}
//
//	@Override
//	public void saveCheckIncomeDetailInfo(PageData pd) throws Exception {
//		dao.save("account.saveCheckIncomeDetail", pd);
//		
//	}
//
//	@Override
//	public PageData findFee(PageData pd) throws Exception {
//		// TODO Auto-generated method stub
//		return (PageData) dao.findForObject("account.findFEE", pd);
//	}
//
//	@Override
//	public PageData findCheckIncomeDetailInfo(PageData pd) throws Exception {
//		
//		return (PageData) dao.findForObject("account.findCheckIncomeDetailById", pd);
//	}
//
//	@Override
//	public PageData findCheckCostDetailInfo(PageData pd) throws Exception {
//		// TODO Auto-generated method stub
//		return (PageData) dao.findForObject("account.findCheckCostDetailById", pd);
//	}
//
//	@Override
//	public void saveCheckCostDetailInfo(PageData pd) throws Exception {
//		dao.save("account.saveCheckCostDetail", pd);
//		
//	}
//
//	@Override
//	public void updateCheckIncomeInfo(PageData pd) throws Exception {
//		dao.update("account.updateCheckIncome", pd);
//		
//	}
//
//	@Override
//	public void updateCheckCost(PageData pd) throws Exception {
//		dao.update("account.updateCheckCost", pd);
//	}
	public List<PageData>findListInfo(PageData pd)throws Exception{
		
		return (List<PageData>) dao.findForList("account.findFeeInfo", pd);
		
	}
	@Override
	public List<PageData> findShou(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>) dao.findForList("account.findShoukuanInfo", pd);
	}
	@Override
	public List<PageData> findFu(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>) dao.findForList("account.findFukuanInfo", pd);
	}
	@Override
	public PageData findBookNoteByBillCode(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (PageData) dao.findForObject("account.findBookNoteInfo", pd);
	}
	@Override
	public PageData findCCACostInfo(String feeName) throws Exception {
		// TODO Auto-generated method stub
		return (PageData) dao.findForObject("account.findCCAFeeByFeeName",feeName);
	}
	@Override
	public PageData findFixedFee(String feeName) throws Exception {
		// TODO Auto-generated method stub
		return (PageData) dao.findForObject("account.findFixedByFeeName", feeName);
	}
	@Override
	public PageData findTradFee(String feeName) throws Exception {
		// TODO Auto-generated method stub
		return (PageData) dao.findForObject("account.findTradeByFeeName", feeName);
	}
	@SuppressWarnings("unchecked")
	@Override
	public List<PageData> findFeeProject(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>) dao.findForList("account.findFeeProject", pd);
	}
	@Override
	public void saveInfo(PageData pd) throws Exception {
		dao.save("account.saveInfo", pd);
		
	}
	@Override
	public List<PageData> findSettlementInfo(PageData pd) throws Exception {
		
		return  (List<PageData>) dao.findForList("account.findSettlementInfo", pd);
	}
	@Override
	public void updateSettlementInfo(PageData pd) throws Exception {
		dao.update("account.updateFeeInfo", pd);
		
	}
	@Override
	public void updateCopeCost(PageData pd) throws Exception {
		dao.update("account.updateCopeFeeInfo", pd);
		
	}
	@Override
	public void saveNoPass(PageData pd) throws Exception {
		dao.save("account.saveNoPassInfo", pd);
		
	}
	@Override
	public List<PageData> findReturnInfo(PageData pd) throws Exception {
		return (List<PageData>) dao.findForList("account.findReturnInfo", pd);
		
		
	}
	@Override
	public void deleteInfo(PageData pd) throws Exception {
		dao.update("account.updateStateByID", pd);
		
	}
	@Override
	public void editState(PageData pd) throws Exception {
		dao.update("account.updateState", pd);
		
	}
}
